package com.da.boot.controller;

import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author JokerDa.
 * @date 2021/1/20 18:56
 * Description:
 */
@RestController
public class HelloController {
    @GetMapping("/bug.jpg")
    public String hello() {
        return "hello";
    }

    @GetMapping("/user")
    public String getUser() {

        return "GET-张三";
    }

    @PostMapping("/user")
    public String saveUser() {
        return "POST-张三";
    }

    @PutMapping("/user")
    public String putUser() {

        return "PUT-张三";
    }

    @DeleteMapping("/user")
    public String deleteUser() {
        return "DELETE-张三";
    }
}
